package info.hengha.filters;

import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class Authenticate implements Filter {

    public FilterConfig config;
    // TODO: get,set

    @Override
    public void init(FilterConfig config) throws ServletException {
        this.config = config;
    }

    @Override
    public void doFilter(ServletRequest request,
            ServletResponse resposne,
            FilterChain chain) throws IOException, ServletException {

        String logonPage = config.getInitParameter("logonPage");
        String redirectPage = config.getInitParameter("redirectPage");
        chain.doFilter(request, resposne);

    }

    @Override
    public void destroy() {

    }
}
